package example;

import example.util.LockerUtil;

public class TestLock {
    static volatile LockerUtil lockerUtil = new LockerUtil();

    public static void main(String[] args) {
        for(int i = 0; i < 2; i++ ) {
            new Thread(()->{
                lockerUtil.lock("key");
                System.out.println("shuchu");
            }).start();
        }
    }
}
